// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import router from "./router/index"

import "@/assets/icon/alifont.css"
import "@/assets/css/normalize.css"

// 引用API文件
import api from './api/index.js'

// 引入 Vant 基础组件及弹窗
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// 引入视频播放
import VideoPlayer from 'vue-video-player';
require('video.js/dist/video-js.css');
require('vue-video-player/src/custom-theme.css');
Vue.use(VideoPlayer);

//时间戳转换/全局过滤器
import * as filters from '@/common/time'
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
});

import Footer from '@/components/Footer.vue'
Vue.component('Footer', Footer);


// 将API方法绑定到全局
Vue.prototype.$api = api

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
